package com.zlm.mapper;

import com.zlm.entity.Role;
import com.zlm.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface UserMapper {
    User loadUserByUsername(@Param("username") String username);

    List<Role> getRolesByUid(@Param("id") Integer id);
}
